package com.yan.work.domain;

import com.yan.work.inter.RedRay;

import java.util.Scanner;

public class Phone implements RedRay {

    @Override
    public void controlTV(TV tv) {
        System.out.println("手机开启红外功能,控制电视");
        System.out.println("输入电视节目信息");
        Scanner input = new Scanner(System.in);
        tv.play(input.next());
    }
}
